package com.hspedu.properties;

import java.io.BufferedReader;
import java.io.FileReader;
import java.io.IOException;

/**
 * @author 谷其昊
 * @version 1.0
 * @date 2022/2/26
 * @time 18:12
 */
public class Properties01 {
    public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(new FileReader("D:\\workspace_idea\\java0\\hspedu\\chapter19\\src\\mysql.properties"));
        String line = null;
        while ((line = br.readLine()) != null){
            String[] split = line.split("=");
            System.out.println(split[0]+"值是："+split[1]);
        }

        if (br != null){
            br.close();
        }
    }
}
